package org.skydiveapplibrary.ui;

import java.util.List;

import android.content.Context;

import org.skydiveapplibrary.data.Location;

public class LocationListAdapter extends BaseListAdapter<Location>
{
	public LocationListAdapter(
			Context context,
			List<Location> locations)
	{
		super(context, locations);
	}

	@Override
	public long getItemId(int index)
	{
		return getItems().get(index).getId();
	}

	@Override
	protected String getText(Location location)
	{
		return location.getName();
	}
}
